<%@ LANGUAGE="VBSCRIPT" %>
<% Option Explicit %>
<!--#include file="includes/cb_adovbs_sys.inc"-->
<!--#include file="includes/header_sys.asp"-->
<!--#include file="includes/generally_sys.asp"-->
<!--#include file="includes/translate.asp"-->
<!--#include file="includes/index.inc.asp"-->
<!--#include file="includes/gwm_user_menu_dhx.asp"-->
<!--#include file="includes/ch_pw_inc.asp"-->
<%
On Error Resume Next
'Codepage einstellen
Session.CodePage = 65001'Unicode, 8-bit encoding
Response.CharSet = "utf-8"
'Sprache -----------------------------------------------------------------
Dim i_lng
i_lng = Request("lng")
If IsEmpty(i_lng) or IsNull(i_lng) or i_lng = 0 Then
    If IsEmpty(Session("ses_i_language")) Then
        i_lng = 1
    Else
        i_lng = Session("ses_i_language")
    End If
end if
Session("ses_i_language")=i_lng'0=keine auswahl 1=german 2=english
'--------------------------------------------------------------------------

'sprache
Dim lng_id
lng_id = i_lng
Dim objConn
Set objConn = Server.CreateObject("ADODB.Connection")
objConn.open strComplete_sys
%> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>Growmetry</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="description" content="#" />
        <meta name="keywords" content="#" />
        <meta name="robots" content="All" />
        <meta name="y_key" content="a5e5f1254ebdc47a" />
        <meta name="google-site-verification" content="mPgxdgzIRne88UVODhNZRp2Nr6vGO3BYPuas9JL4jCY" />
        <meta name="msvalidate.01" content="C1BEF8C729CC6013D7DB7154AD6331F4" />
        <meta name="revisit-after" content="7 days" />
        <link rel="stylesheet" type="text/css" media="all" href="css/reset.css" />
        <link rel="stylesheet" type="text/css" media="all" href="css/text.css" />
        <link rel="stylesheet" type="text/css" media="all" href="css/960.css" />
        <link rel="stylesheet" type="text/css" media="all" href="css/main.css" />
        <link href="../css/growmetry.css" rel="stylesheet" type="text/css" />
        <!--[if IE 7]>
	    <link rel="stylesheet" type="text/css" href="css/ie7.css">
        <![endif]-->
        <!-- Basic Jquery Slider styles (This is the only essential css file) -->
        <link rel="stylesheet" type="text/css" media="all" href="css/basic-jquery-slider.css" />

        <link type="text/css" href="css/menu.css" rel="stylesheet" />
        <script type="text/javascript" src="js/jquery.js"></script>
        <script type="text/javascript" src="js/menu.js"></script>
        

        <!-- Load jQuery and the plug-in -->
        <!--script type="text/javascript" src="js/libs/jquery-1.6.2.min.js"></script-->
        <script type="text/javascript" src="js/basic-jquery-slider.js"></script>

<!--        <script type="text/javascript" src="js/lang.js"></script>
        <link type='text/css' href='css/popup.css' rel='stylesheet' media='screen' />
        <script type='text/javascript' src='js/jquery.simplemodal-1.4.4.js'></script>
        <script type='text/javascript' src='js/popup.js'></script>
        <script src="includes/dhtmlxSuite/dhtmlxTree/codebase/dhtmlxcommon.js"></script>-->
        
        <link type='text/css' href='css/popup.css' rel='stylesheet' media='screen' />
        <script type='text/javascript' src='js/jquery.simplemodal-1.4.4.js'></script>
        <script language="JavaScript1.2" src="../main.js" type="text/javascript"></script>
        <script type="text/javascript" src="js/lang.js"></script>
        <script type='text/javascript' src='js/popup.js'></script>
        <script src="includes/dhtmlxSuite/dhtmlxTree/codebase/dhtmlxcommon.js"></script>
    
        <!--  Attach the plug-in to the slider parent element and adjust the settings as required -->
        <script type="text/javascript">
            $(document).ready(function(){    
                $("#login_menu").click(function () {
                    if ($("div.fix_menu").html() != null){
                        $("div.fix_menu").replaceWith("<span class='fix_menu'>" + $("div.fix_menu").html() + "</span>");
                    } else {
                        $("span.fix_menu").replaceWith("<div class='fix_menu'>" + $("span.fix_menu").html() + "</div>");
                    }
                    $('.lost_pw').click(function(e) {
                    $("#imgCaptcha")[0].onload = function() {
                        lost_pw = $('#lost_pw-modal-content').modal({
                            minWidth: lostPwOptions.width,
                            minHeight: lostPwOptions.height,
                            maxWidth: lostPwOptions.width,
                            maxHeight: lostPwOptions.height,
                            focus: false
                        });
                        $("#imgCaptcha")[0].onload = null;
                    };
                    reloadCaptcha();
                    return false;
                    }); 
                });
            });
            
            var my_gr_menu = [//<%= userMenuWriteSubItems2(objConn, getGroupByUser(objConn, Session("ses_iu")), -1, lng_id) %>
            ];
            function indent(level){
                var r = "";
                for (var i = 0; i < level; i++){
                    r += "&nbsp;&nbsp;&nbsp;&nbsp;";
                }
                return r;
            }
            
            function create_node(text, link, has_child, level){
                link = link != ''?link:"javascript: void(0);"
                document.write("\n<li>\n<a style='width: 200px;' href='"+link+"'><span>"+ indent(level) +text+"</span></a>\n</li>");
            }
            
            function write_menu(parent, level){
                for (var i = 0; i < my_gr_menu.length; i++){
                    if (my_gr_menu[i].parent_mi_id == parent){
                        create_node(my_gr_menu[i].TEXT, my_gr_menu[i].LINK, my_gr_menu[i].has_child, level);
                        if (my_gr_menu[i].has_child){
                            level++;
                            write_menu(my_gr_menu[i].mi_id, level);
                            level--;
                        }
                    }
                }
            }
            
            $(document).ready(function () {

                a = $('#banner').bjqs({
                    'animation': 'fade',
                    'width': 940,
                    'height': 345,
                    'showMarkers': false,
                    'showControls': false,
                    'centerMarkers': false,
                    'useCaptions': false,
                    'rotationSpeed': 8000
                });

            });
    lostPwOptions = {
        //<% If lng_id = 1 Then%>
        // German
            width: 640, 
            height: 570,
        //<% Else %>
        // English
            width: 640, 
            height: 510,
        //<% End If %>

        };
    popupOptions2 = {
        //<% If lng_id = 1 Then%>
        // German
            width: 500, 
            height: 350,
        //<% Else %>
        // English
            width: 500,
            height: 350
        //<% End If %>

    };
    String.prototype.trim = function(){
        return this.replace(/^\s*(.+?)\s*$/, "$1");
    };

    function reloadCaptcha(){$("#imgCaptcha").attr('src', 'captcha_lost_pw.asp?' + new Date().getTime());}
    function _focus(obj){
        if (obj.value == '<%= fc_value_string(lng_id, "var_lost_pw_08") %>'){
            obj.value = '';
            obj.style.color = 'black';
        }
    }
function _blur(obj){
    if (obj.value == ""){
        obj.value = '<%= fc_value_string(lng_id, "var_lost_pw_08") %>';
        obj.style.color = 'grey';
    }
}
function _check_c(obj){
    var a = /[0-9]{6}/
    document.getElementById('btnSend').disabled = ! a.test(obj.value);
}
function check_email_format(){
    var email_text = document.getElementById('email').value;
    var re = /^[A-z0-9._-]+@[A-z0-9.-]+\.[A-z]{2,4}$/;
    if (! re.test(email_text) ) {
        var err_msg = '<%= fc_value_string(lng_id, "var_lost_pw_50") %>';
        alert(err_msg);
    } else {
        _submit();
    }
}

function _submit(){
    var email_text = document.getElementById('email').value;
    var params = 'captcha='+document.getElementById('captcha').value+'&email='+email_text+'&email2='+document.getElementById('email2').value+'&user_id='+document.getElementById('user_id').value+'&inquiry='+document.getElementById('inquiry').value;
    dhtmlxAjax.post("lost_pw.asp", params, function(loader){
        var resp = loader.xmlDoc.responseText;
        if ( resp.substr(0, 1) == '{' ) {
            var json = eval ("(" + resp + ")");
            if ( json && typeof json === 'object' ) {
                if (json.status == 'error'){
                    alert("Error: " + json.msg);
                } else if (json.status == 'action') {
                    if (json.do == 'reloadCaptcha'){
                        reloadCaptcha();
                        alert(json.msg);
                    }
                } else {
                    if (json.msg != '' && json.msg != undefined){
                        lost_pw.close();
                        document.getElementById('lost_pw_msg_text').innerHTML = json.msg;
                        $('#lost_pw_msg_b').click();
                        lost_pw_msg.update(180);
                    } else if (json.count && json.count > 1){
                        lost_pw.close();
                        var lost_pw_content_2 = document.getElementById('lost_pw_content_2').innerHTML;
                        lost_pw_content_2 = lost_pw_content_2.replace(/\[number_email_found\]/, json.count);
                        document.getElementById('lost_pw_content_2').innerHTML = lost_pw_content_2;
                        $('.lost_pw_2').click();
                        document.getElementById('email2').value = json.email;
                        document.getElementById('inquiry').value = json.inquiry;
                    }
                }
            } else {
                alert('Unknown request error occured');
            }
        } else {
            alert('Error requesting the data. Error: ' + loader.xmlDoc.responseText);
        }
    });
}
        </script>
                    
    </head>
    <body>
<style type="text/css">
    .simplemodal-container {
        border: black 2px solid;
        line-height: normal;
    }
    .simplemodal-container input[type="text"] {
        border: 1px grey inset;
        padding: 1px;
    }
    .simplemodal-container input[type="button"] {
        border: 1px grey outset;
        padding: 1px;
        cursor: pointer;
    }
    .simplemodal-container a {
        color: #333;
    }
</style>
<div id="lost_pw-modal-content">
    <div class="lost_pw_main">
        <div class="lost_pw_header"><%= fc_value_string(lng_id, "var_lost_pw_01") %></div>
        <div class="lost_pw_content" style="font-size: 13px;">
        <%= fc_value_string(lng_id, "var_lost_pw_02") %>
        </div>
        <div class="lost_pw_email">
            <div style="font-weight: bold; padding-bottom: 5px;"><%= fc_value_string(lng_id, "var_lost_pw_03") %></div>
            <input type="text" id="email" name="email" style="width: 405px; color: grey;" value="<%= fc_value_string(lng_id, "var_lost_pw_08") %>" onfocus="_focus(this)" onblur="_blur(this)" />
            <div style="font-size: 10px; text-align: right; padding-top: 5px;">
                <a href="javascript: void(0);" onclick="
                alert('<%= fc_value_string(lng_id, "var_lost_pw_10") %>')
                "><%= fc_value_string(lng_id, "var_lost_pw_09") %></a>
            </div>
        </div>
        <div class="lost_pw_content" style="padding-top: 30px; font-size: 13px;">
            <%= fc_value_string(lng_id, "var_lost_pw_04") %>
        </div>
        <div class="lost_pw_captcha">
            <img style=" float: left; border: 1px solid black;" id="imgCaptcha" src="captcha_lost_pw.asp" />
            <div style="text-align: left; font-size: 10px; margin-left: 155px;">
            <%= fc_value_string(lng_id, "var_lost_pw_05") %>
            </div>
        </div>
        <div class="lost_pw_input">
            <input id="captcha" name="captcha" style="width: 138px; margin-right: 5px; color: grey;" type="text" value="<%= fc_value_string(lng_id, "var_lost_pw_08") %>" onfocus="_focus(this)" onblur="_blur(this)" onkeyup="_check_c(this)" />
            <a style="margin-right: 5px; position: relative; top: -2px;" href="javascript: void(0);" onclick="reloadCaptcha()">
            <img src="images/reload.gif" border="0" /></a>
        </div>
        <div class="lost_pw_input" style="text-align: right;">
            <input style="width: 70px;" id="btnSend" type="button" value="Send" onclick="check_email_format()" disabled />
        </div>
        <div style=" text-align: left; font-size: 10px; padding-top: 20px;">
            <%= fc_value_string(lng_id, "var_lost_pw_06") %><br />
            <%= fc_value_string(lng_id, "var_lost_pw_07") %>
        </div>
        <div style="margin-top: 30px;" class="txtlegal">
            <a href="contact_us.asp"><%= fc_value_string(Session("ses_i_language"), "var_glob_txt_07") %></a> 
            | <a href="about.asp"><%= fc_value_string(Session("ses_i_language"), "var_glob_txt_08") %></a> 
            | <a href="terms.asp"><%= fc_value_string(Session("ses_i_language"), "var_glob_txt_09") %></a> 
            | <a href="terms.asp#disclaimer"><%= fc_value_string(Session("ses_i_language"), "var_glob_txt_10") %></a> 
            | <a href="terms.asp#privacy"><%= fc_value_string(Session("ses_i_language"), "var_glob_txt_11") %></a>
        </div>
    </div>
</div>
<span style="display: none;" class="lost_pw_2"></span>
<div id="lost_pw-modal-content_2">
    <div class="lost_pw_main_2">
        <div class="lost_pw_header_2"><%= fc_value_string(lng_id, "var_lost_pw_01") %></div>
        <div id="lost_pw_content_2" class="lost_pw_content_2" style="font-size: 13px;">
            <%= fc_value_string(lng_id, "var_lost_pw_14") %>
        </div>
        <div class="lost_pw_email_2">
            <div style="font-weight: bold; padding-bottom: 5px;"><%= fc_value_string(lng_id, "var_lost_pw_15") %></div>
            <input type="text" id="user_id" name="user_id" style="width: 305px;" value="<%= fc_value_string(lng_id, "var_lost_pw_08") %>" onfocus="_focus(this)" onblur="_blur(this)" />
            <div style="font-size: 10px; text-align: right; padding-top: 5px;">
            <a href="javascript: void(0);" onclick="
            alert('<%= fc_value_string(lng_id, "var_lost_pw_12") %>')
            "><%= fc_value_string(lng_id, "var_lost_pw_11") %></a>
            </div>
        </div>
        <div class="lost_pw_email_2">
            <div style="font-weight: bold; padding-bottom: 5px;"><%= fc_value_string(lng_id, "var_lost_pw_03") %></div>
            <input type="text" id="email2" readonly name="email2" style="width: 305px; color: grey;" />
            <input type="hidden" id="inquiry" name="inquiry" style="width: 305px;" />
        </div>
        <div class="lost_pw_email_2" style="text-align: right;">
            <input style="width: 70px;" type="button" value="Send" onclick="_submit()" />
        </div>
    </div>
</div>
<span id="lost_pw_msg_b"></span>
<div id="lost_pw_msg">
    <div id="lost_pw_msg_header"></div>
    <div id="lost_pw_msg_text"></div>
    <div id="lost_pw_msg_button">
        <input style="width: 100px;" type="button" value="OK" onclick="lost_pw_msg.close();" />
    </div>
</div>
              <script type="text/javascript" src="includes/wz_tooltip.js"></script>
              <div class="container_12" style="padding-top: 30px;">             
                <div id="logo" class="grid_4">
                    <a href="index.asp">
                        <img src="images/<%= fc_value_string(lng_id, "var_index_68") %>" alt="" title="" />
                    </a>
                </div>
                <div class="grid_8">
                    <ul id="top_right" style="margin-bottom: 0px;">
                        <li id="verytop">
                            <a href="index.asp"><%= fc_value_string(lng_id, "var_index_73") %> |</a>
                            <a href="contact_us.asp"> <%= fc_value_string(lng_id, "var_index_74") %> |</a>
                            <a href="javascript: void(0);" onclick="<%= fc_value_link(lng_id, "var_index_76") %>"><%= fc_value_string(lng_id, "var_index_76") %></a>
                        </li>
                        <%If Session("ses_str_User_name") <> "n/a" Then%>
                        <!-- <li>Logged-in as: <span><%=Session("ses_str_User_name")%></span></li> -->
                        <li id="tr_2">
                        	<span class="txtloginasgrey"><%= fc_value_string(Session("ses_i_language"), "var_glob_txt_01") %></span><span class="txtloginasred"><strong><%=Session("ses_str_User_name")%></strong></span>
                        	<span class="txtloginasgrey"> <%= fc_value_string(Session("ses_i_language"), "var_glob_txt_1009") %> <a href="logout.asp"><%= fc_value_string(Session("ses_i_language"), "var_glob_txt_02") %></a></span>
                        </li>
                        <li id="tr_2">
                        	<strong class="txtloginasgreen"><%=Session("ses_txt_logininfo_z02")%></strong>
                        </li>
                        <li id="tr_2">
                        	<span class="txtloginasgrey"><%=Session("ses_txt_logininfo_z03")%></span>
                        </li>

                        <% End If %>
                    </ul>
                </div>
            </div>
            <div id="top_nav_backgr">
                <div class="container_12">                    
                    <div id="top_nav" class="grid_12">

                        <div id="menu">
                            <ul class="menu">
                                <li>
                                    <a class="selected parent" href="javascript: void(0);"><span class="menu shadow"><%= fc_value_string(lng_id, "var_index_01") %></span><span class="sub"><%= fc_value_string(lng_id, "var_index_02") %></span></a>
                                    <div>
                                        <ul>
                                            <li><a href="method.asp"><span><%= fc_value_string(lng_id, "var_index_44") %></span></a></li>
                                            <li><a href="the_story.asp"><span><%= fc_value_string(lng_id, "var_index_45") %></span></a></li>
                                            <li><a href="masterminds.asp"><span><%= fc_value_string(lng_id, "var_index_46") %></span></a></li>
                                        </ul>
                                    </div>
                                </li>
                                <li>
                                    <a href="javascript: void(0);" class="parent"><span class="menu shadow"><%= fc_value_string(lng_id, "var_index_03") %></span><span  class="sub"><%= fc_value_string(lng_id, "var_index_04") %></span></a>
                                    <div>
                                        <ul>
                                            <li><a href="bio_age.asp"><span><%= fc_value_string(lng_id, "var_index_47") %></span></a></li>
                                            <li><a href="b-age_important.asp"><span><%= fc_value_string(lng_id, "var_index_48") %></span></a></li>
                                            <li><a href="grwm_special.asp"><span><%= fc_value_string(lng_id, "var_index_49") %></span></a></li>
                                        </ul>
                                    </div>
                                </li>
                                <li>
                                    <a href="javascript: void(0);" class="parent"><span class="menu shadow"><%= fc_value_string(lng_id, "var_index_05") %></span><span  class="sub"><%= fc_value_string(lng_id, "var_index_06") %></span></a>
                                    <div>
                                        <ul>
                                            <li><a href="measurem_instructions.asp"><span><%= fc_value_string(lng_id, "var_index_50") %></span></a></li>
                                            <li><a href="correct_measurem.asp"><span><%= fc_value_string(lng_id, "var_index_51") %></span></a></li>
                                            <li><a href="regular_measurem.asp"><span><%= fc_value_string(lng_id, "var_index_52") %></span></a></li>
                                        </ul>
                                    </div>
                                </li>
                                <li><a href="faq.asp"><span class="menu shadow"><%= fc_value_string(lng_id, "var_index_07") %></span></a></li>
                                <%If Session("ses_str_User_name") = "n/a" Then%>
                                <li>
                                    <a id="login_menu" href="javascript: void(0);" class="parent"><span class="menu shadow"><%= fc_value_string(lng_id, "var_index_08") %></span></a>
                                    <div class="fix_menu">
                                        <ul>
                                            <li>
                                                <table class="table_menu">
                                                    <tr>
                                                        <td class="nav_sep_h top10">
                                                                                                                                                         
                                                                <form method="post" class="signin" action="login.asp">
                                                                      <fieldset class="textbox">
            	                                                      <label class="username">                                            
                                                                          <span><%= fc_value_string(lng_id, "var_index_54") %></span>
                                                                          <input id="username" name="T1"  type="text" value=""  />
                                                                      </label>
                                                                      <label class="password">
                                                                          <span><%= fc_value_string(lng_id, "var_index_55") %></span>
                                                                          <input id="password" name="T2" type="password" value=""  />
                                                                      </label>
                                                                          <input type="hidden"  name="btnSub_01" value="1" />
                                                                      <button class="submit button" type="button" onclick='this.form.submit();'><span><%= fc_value_string(lng_id, "var_index_56") %></span></button>
                                                                      </fieldset>
                                                                </form>     
                                                                <a style="width: 180px;" class="forgotten lost_pw" href="javascript: void(0);" title="<%= fc_value_string(lng_id, "var_index_66") %>"><%= fc_value_string(lng_id, "var_index_57") %></a>
                                                                <!--<a class="forgotten lost_pw" href="javascript: void(0);" title="<%= fc_value_string(lng_id, "var_index_67") %>"><%= fc_value_string(lng_id, "var_index_58") %></a>-->       
                                                        </td>                                                        
                                                    </tr>
                                                    <tr>
                                                        <td class="top10 bottom15">
                                                            <span class="table_span"><%= fc_value_string(lng_id, "var_index_62") %></span>
                                                            <button style="width: 170px;" class="submit button" type="button" onclick='window.location="step1_accept_terms.asp"'><span><%= fc_value_string(lng_id, "var_index_63") %></span></button>
                                                        </td>
                                                    </tr>
                                                </table>   
                                            </li>
                                        </ul>
                                    </div>
                                </li>
                                <% Else %>
                                <li>
                                    <a href="logout.asp" style="margin-right: 0px; padding: 0 10px 0 10px;"><span class="menu shadow"><%= fc_value_string(Session("ses_i_language"), "var_glob_txt_02") %></span></a>
                                </li>
                                <% End If
                                If Session("ses_str_User_name") <> "n/a" Then%>
                                <li class="last">
                                    <a href="javascript: void(0);" class="parent"><span class="menu shadow"><%= fc_value_string(lng_id, "var_index_09") %></span></a>
                                    <div>
                                        <ul>
                                            <!--<li><a href="my-growmetry.asp"><span><%= fc_value_string(lng_id, "var_index_64") %></span></a></li>-->
                                            <% If Session("ses_ig") = 1 Then %>
                                            <li><a href="contact_us_admin.asp"><span><%= fc_value_string(lng_id, "var_index_79") %></span></a></li>
                                            <% End If %>
                                            <script>
                                                write_menu(-1, 0);
                                            </script>
                                        </ul>
                                    </div>
                                </li>
                                <% Else %>
                                <li class="last disabled_menu">
                                    <a href="javascript: void(0);" class=""><span class="menu shadow"><%= fc_value_string(lng_id, "var_index_09") %></span></a>
                                </li>
                                <% End If %>
                            </ul>
                        </div>


                    </div>
                </div>
             </div>